<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>   
<link rel="stylesheet" type="text/css" href="${initParam.root}css/spearmint-tints.css"/> 
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="${initParam.root}jquery-1.9.1.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		$("#sell_list_btn").click(function(){
			location.href="${initParam.root }sell.do?command=getContentList&pageNo=1";
		});
		$("#sell_list_btn2").click(function(){
			location.href="${initParam.root }sell.do?command=getContentList&pageNo=1";
		});
		$("#buy_list_btn").click(function(){
			location.href="${initParam.root}buyboard.do?command=getContentList&nowPage=1";
		});
		$("#free_list_btn").click(function(){
			location.href="${initParam.root }freeboard.do?command=freeBoardGetAllList";
		});
	});
</script>
	
    <h3>사파리 테스트 2차 메인 페이지</h3>
<!-- 판매 게시판 핫 키워드 Best 5 -->

<table id="mainframe" width="1150" style="border-color: #FFFFC6;">
<tr id="mainframe_top" height="250">
<td id="mainframe_topleft">
<div>
<table id="sellTableHotClick" border=1  cellpadding="2" style="float: left">
	<thead>
	<tr><td colspan="5">판매 게시판 핫 클릭 Best 5<img id="sell_list_btn2" align="right" src="${initParam.root}img/list_btn.jpg"></td></tr>
		<tr><td>글번호</td><td>글제목</td><td>판매자</td><td>작성시간</td><td>조회수</td></tr>
	</thead>
	<tbody>
		<c:forEach items="${requestScope.boardListInfo.hotClickList}" var="list">	
			<tr><td>${list.sellNo}</td><td>[${list.sellStatus}]
			<a href="${initParam.root}sell.do?command=showContent&sellNo=${list.sellNo}">${list.title}</a></td>
			<td>${list.mvo.id }(${list.mvo.name })</td><td>${list.timePosted}</td>
			<td>${list.hits}</td></tr>
		</c:forEach>
	</tbody>
</table>
</div>
</td>

<td id="mainframe_topright"><table border=1  cellpadding="2" width="300"  style="float: left;">
	<thead>
	<tr><td colspan="2">판매 게시판 핫 키워드 Best 5</td></tr>
		<tr><td>순위</td><td>검색어</td></tr>
	</thead>
	<tbody>
		<c:forEach items="${requestScope.boardListInfo.hotKeywordList}" var="list">	
			<tr><td>${list.rank}</td><td>${list.hotKeyword}</tr>
		</c:forEach>
	</tbody>
</table></td>
</tr>

<tr id="mainframe_middle" height="250">
<td id="mainframe_middleleft">
<!-- 판매 게시판 최근 게시물 -->
<div>
<table id="sellTable" border=1  cellpadding="2" style="float: left">
	<thead>
	<tr><td colspan="5">판매 게시판 최근 게시물<img id="sell_list_btn" align="right" src="${initParam.root}img/list_btn.jpg"></td></tr>
		<tr><td>글번호</td><td>글제목</td><td>판매자</td><td>작성시간</td><td>조회수</td></tr>
	</thead>
	<tbody>
		<c:forEach items="${requestScope.boardListInfo.lsvo}" var="list">	
			<tr><td>${list.sellNo}</td><td>[${list.sellStatus}]
			<a href="${initParam.root}sell.do?command=showContent&sellNo=${list.sellNo}">${list.title}</a></td>
			<td>${list.mvo.id }(${list.mvo.name })</td><td>${list.timePosted}</td>
			<td>${list.hits}</td></tr>
		</c:forEach>
	</tbody>
</table>
</div>
</td>

<td id="mainframe_middleright">
<!-- 구매 게시판 최근 게시물 -->
<div>
<table id="buyTable" border="1" cellpadding="2" style="float: left">
	<thead>
		<tr><td colspan="5">구매 게시판 최근 게시물<img id="buy_list_btn" align="right" src="${initParam.root}img/list_btn.jpg"></td></tr>
		<tr>
			<th width="10%">글번호</th>
			<th width="50%">제목</th>
			<th width="15%">작성자</th>
			<th width="15%">작성일</th>
			<th width="10%">조회수</th>
			</tr>		
	</thead>
	<tbody>
			<c:forEach var="bvo" items="${requestScope.boardListInfo.lbvo}">		
			<tr>
			    <td>${bvo.no }</td>
				<td><a href="${initParam.root}buyboard.do?command=showContentHits&no=${bvo.no }&hits=${bvo.hits }">		
				${bvo.title }</a></td>
				<td>${bvo.memberVO.id }</td>
				<td>${bvo.timePosted }</td>
				<td>${bvo.hits }</td>
			</tr>		
			</c:forEach>
		</tbody>
	</table>
</td>
</tr>

<tr id="mainframe_bottom" height="250">
<td id="mainframe_bottomleft" colspan="2">
<!-- 자유 게시판 최근 게시물 -->

<table border="1" width="900" align="center">
<thead>
<tr><td colspan="5">자유게시판 최근 게시물<img id="free_list_btn" align="right" src="${initParam.root}img/list_btn.jpg"></td></tr>
<tr><td width="5%">글번호</td><td width="10%">글쓴이</td><td width="50%">제목</td><td width="10%">등록일</td><td width="10%">조회수</td></tr>
</thead>

<tbody>
<%-- 게시물 페이지 정보(간략히) :  번호 | 글쓴이 | 제목 | 등록일 | 조회수 --%>
<c:forEach items="${requestScope.boardListInfo.lfvo}" var="fList">
<tr><td>${fList.no}</td><td>${fList.id}</td>
<td>
<c:if test="${fList.restep!=0}">
<img src="img/reply.jpg">
</c:if>
<a href="${initParam.root}freeboard.do?command=freeBoardShowContent&no=${fList.no}">${fList.title}</a></td>
<td>${fList.time_posted}</td><td>${fList.hits}</td></tr>
</c:forEach>
</tbody>
</table>

</td>
</tr>

</table>
 <br><br><br><br><br><br><br><br>



 </div> <br><br><br><br><br><br><br><br><br><br><br><br>
 
    
    
    
    
    
    
    


